package com.yunzheng.studyLeaveSystem.modules.response;

public enum ResultCode {
    SUCCESS("0000","成功"),
    NODATA("0001","成功但无记录"),
    FAILURE("0002","失败"),
    ACCOUNT_FAILURE("1001","您还没有注册呦，快去注册吧~"),
    PWD_FAILURE("1002","您的用户名与密码不匹配呦~"),
    EXIST_FAILURE("1003","您已经注册过了哦~"),
    MEMBER_FAILURE("1004","您还不是云子呦~"),
    INVITE_FAILURE("1005","邀请码错了哦，快去核对一下吧~"),
    USER_SUCCESS("2001","您已登陆成功~"),
    ADMIN_SUCCESS("2002","管理员大大登录成功~");
    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
